Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. A vertical slider with long needle
Forum Updated to NodeBB v4.3 + New Features

A vertical slider with long needle

Scheduled Pinned Locked Moved Unsolved Qt for Python
qt for pythonpythonpysidepyside2
4 Posts 3 Posters 771 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    autoasl
    wrote on last edited by
    #1

    I am still learning how to use QT but I have been searching and could not find any example nor answer. I only found one close is Qt Dial slider but I want to use a vertical slider with a colored long needle. See the image that I am looking for it to be used over the background image below to understand what I need. I hope one of you kindly point me to the right direction.

    ![alt text](image url)tickwithneedle.png

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Will there be something shown under that needle ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Will there be something shown under that needle ?

        A Offline
        A Offline
        autoasl
        wrote on last edited by
        #3

        @SGaist I intend to put an image under the needle. The long needle would be the indicator where it points on the image.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Depending on what your image is, you can create a custom QAbstractSlider that will draw the image and then the cursor on top of it.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved